﻿using System;
using ConceptsFramework.AbstractConceptElements;
using ConceptsFramework.DerivedRelationships;

namespace PatternExplorer.DerivedConcepts
{
    public class PropertySummary : AbstractBindableConcept, IEquatable<PropertySummary>
    {
        public bool Equals(PropertySummary other)
        {
            return (this.Name == other.Name);
        }

       
        public override bool IsRelationshipAutorized<T>()
        {
            Type genericType = typeof(T);
            if (typeof(IsContainedRelationship).IsAssignableFrom(genericType))
                return true;
            return false;
        }

        public override void ResolveInverseRelationships()
        {
            
        }


        public string ReturnTypeName
        {
            get;
            set;
        }

        public bool IsStatic
        {
            get; set; 
        }
    }
}
